#include "Point.h"
#include <iostream>
#include <stdio.h>
Point::Point()
{
	this -> x = 0.0;
	this -> y = 0.0;
}
Point::Point(double x, double y)
{
	this -> x = x;
	this -> y = y;
}
Point::Point(const Point *p)
{
	this -> x = p -> x;
	this -> y = p -> y;
}
Point::Point(const Point &p)
{
	this -> x = p.x;
	this -> y = p.y;
}
Point::~Point()
{
	printf("Deleted.\n");
}
double Point::getX()
{
	return this -> x;
}
double Point::getY()
{
	return this -> y;
}
void Point::setX(double d)
{
	this -> x = d;
}
void Point::setY(double d)
{
	this -> y = d;
}
std::istream& operator >> (std::istream &in, Point &p)
{
	in >> p.x >> p.y;
	return in;
}
std::ostream& operator << (std::ostream &out, Point p)
{
	printf("\n");
	out << p.x << " " << p.y << "\n ";
	return out;
}
using namespace std;
int main()
{
	printf("Everything works fine.");
	return 0;
}